package tech.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tech.aistar.entity.Product;

import java.util.List;

public interface ProductMapper {

    List<Product> findAll(@Param("name") String name,@Param("typeId") Integer typeId);

    @Delete("delete from product where id=#{value}")
    void delById(Integer id);

}